//
//  YZMStockQuotePanelView.h
//  YZMicroStock
//
//  Created by wangminhong on 16/4/12.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YZMTradeTypeDef.h"
#import "YZMMyStackModel.h"
#import "YZMConfigureModel.h"
#import "YZMRedPacketInfor.h"

typedef void(^YZMStockQuotePanelViewSegmentBlock)(NSUInteger index);

@class YZMStockRealModel;

@interface YZMStockQuotePanelView : UIView

@property (nonatomic, strong) YZMMyStackModel *schemeModel;
@property (nonatomic, strong) YZMConfigureModel *defaultMode;
@property (nonatomic, strong) YZMRedPacketInfor *inforModel;

@property (nonatomic, copy) YZMStockQuotePanelViewSegmentBlock block;

- (instancetype)initWithFrame:(CGRect)frame andTradeType:(YZM_TRADE_TYPE)tradeType;
- (void)updateWithStockCode:(NSString *)code;
- (void)updateRealInfo:(YZMStockRealModel *)realInfo;

- (void)refreshData;

-(void)updateCurrentIndex:(NSInteger )currentIndex;

@end
